<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>My JSP 'single_account_search.jsp' starting page</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<link href="<%=path%>/css/ui-lightness/jquery-ui-1.10.3.custom.min.css"
	rel="stylesheet" type="text/css" />
<link href="<%=path%>/css/style_ext.css" rel="stylesheet"
	type="text/css" />
<script type="text/javascript" src="<%=path%>/js/jquery-1.10.1.min.js"></script>
<script type="text/javascript"  src="<%=path%>/js/jquery-ui-1.10.3.custom.min.gaowei.js"></script>
<script type="text/javascript" src="<%=path %>/js/tools.js"></script>
<script type="text/javascript" src="<%=path %>/js/FormValidation.js"></script>
<script type="text/javascript">
   function vRequired(fieldId){
	var fieldObj = document.getElementById(fieldId);
	if (fieldObj){		
		if(fieldObj.value == ""){
			return false;
		}
		else if(fieldObj.value == "-999999999999"){
			return false;
		}
	}else{
		return false;
	}
	return true;
	}


function nvRequired()
{
   //alert("nvRequired");
  if(!vRequired("payAccountNum") && !vRequired("payCertificateNum") 
  && !vRequired("receiveAccount") && !vRequired("receiveCertificateNum") 
  && !vRequired("startDate") && !vRequired("endDate")  ){
		return false;
	}
	return true;
}
function dataValidatecheck(){
    var startDate = document.getElementById("startDate").value;
    var endDate = document.getElementById("endDate").value;
    //alert();
    if((startDate != null && startDate != "")|| (endDate != null && endDate != ""))
    {
	if((startDate != "") && !(DateValid("startDate","业务开始日期"))){
    	document.getElementById("startDate").focus();
    	return false;  
    	}
    	if((endDate != "") && !(DateValid("endDate","业务结束日期"))){
    	document.getElementById("endDate").focus();
    	return false;
         }
    if((startDate != "") && (endDate != "") ){
        if(!(fromtoTimeValid("startDate","endDate","业务日期")))
        {
           return false
        }
        else
        {
           return true;
        }
    	
    }
    } 
    
	return true;
	}
   function formCheck(){

   //alert('abcde');
    if(nvRequired())
    {
    	if(dataValidatecheck())
    	{
    	    submitForm = document.getElementById("win_form");
	    	submitForm.submit();
		    return true;
		}
    }
    else
    {
    	alert("查询条件不能全为空");
    	 return false;
    }
    
   return false;
    }
   </script>


<script type="text/javascript">
     $(function(){
        $("#startDate").datepicker();
        $("#endDate").datepicker();
        $("#submit").click(function()
        {
          formCheck();
         
        }
        );
     });
    
    </script>


</head>

<body>
<%
    List<String> result = (List<String>)request.getAttribute("result");
    if(result !=null )
    {
          System.out.println("******************8");
          System.out.println(result.size());
    }

 %>
	<table width="95%" border="0" align="center" cellpadding="0"
		cellspacing="0">
		<tr>
			<td class="whiteline" height="30" width="100%">
				<table width="99%" align="center" border="0" cellpadding="0"
					cellspacing="0">
					<tr>
						<td class="tabletitle">虚拟卡信息查询</td>
					</tr>
				</table></td>
		</tr>
		<tr>
			<td>
				<form  name="win_form" method="post" action="/PoliceProject/servlet/MoneyStreamSearch">
					
					<table width="99%" border="0" align="center" class="tablecontent"
						cellpadding="1" cellspacing="0">


						<tr align="left" valign="middle">
							<td width="72">付款方账号</td>
							<td width="241"><input id="payAccountNum"
								name="payAccountNum" value="">
							</td>
							<td width="75">付款方证件号码</td>
							<td width="241"><input id="payCertificateNum"
								name="payCertificateNum" value="">
							</td>
							<td width="72">收款方账号</td>
							<td width="241"><input id="receiveAccount"
								name="receiveAccount" value="" type="text" class="inputcolor"
								size="20">
							</td>
						</tr>
						<tr align="left" valign="middle">
							<td width="90">收款方证件号码</td>
							<td width="235"><input id="receiveCertificateNum"
								name="receiveCertificateNum" type="text" class="inputcolor"
								size="20"></td>
							<td width="72">业务日期</td>
							<td align="left" width="241"><input id="startDate"
								name="startDate" value="" size="9">－<input id="endDate"
								name="endDate" value="" type="text" class="inputcolor" size="9">
							</td>
							<td width="72"></td>
							<td width="241"></td>
						</tr>
						<tr align="left" valign="middle">
							<td width="79"></td>
							<td width="209"></td>
							<td width="81"></td>
							<td width="216"></td>
							<td width="72"></td>
							<td align="right"><input type="submit" id="submit"
								class="btn" name="btn2" value="查 询" > <input
								type="button" class="btn" name="cz1" value="重 置"
								onclick="formreset1()"></td>
						</tr>


					</table>
				</form></td>
		</tr>

		<tr>
			<td height="5"></td>

		</tr>
		<tr>
			<td>
				<table width="99%" border="0" align="center" class="tablecontent"
					cellpadding="1" cellspacing="1">

					<tr align="left" valign="middle" class="tablelisttitle">
						<td align="right" width="3%"></td>
						<td width="11%">虚拟账户编码</td>
						<td width="12%">大客户编码</td>
						<td width="20%">大客户公司名称</td>
						<td width="30%">大客户部门</td>
					</tr>
					<%%>
					<TR>
						<td colspan="12" class="grayline" height="1"></td>
					</TR>

					<tr align="left" valign="middle">
						<td align="right"><label>
						</td>
						<TD width="97"><a href="" class="txtlink"> </a>
						</TD>
						<TD width="112"></TD>
						<TD width="119"></TD>
						<TD></TD>

					</tr>

					<tr>
						<td colspan="12" class="grayline" height="1"></td>
					</tr>
					<%%>
				</table></td>

		</tr>
	</table>

</body>
</html>
